
    <p>The objective of this game is to accumulate the most points by selecting the "winning pick" for each match.</p>
    <p>All the matchs has been divided into rounds.</p>
    <p>For each round the "winning pick" for each match has to be set.</p>
    <p>All the picks from a given round can be assigned a specifick set of points.</p>
    <p>For each match you have selected the "Winning pick" you get the assigned points.</p>
    <p>The user with the most points at the end of the tournament is the Winner.</p>
</div>

<div class="container">
    <h2>Scores</h2>
    <table id="scores" width="1000">
        <tr class="HeadLine"><td width="300">User</td><td width="400">Score</td><td width="150">Correct 1. picks</td><td width="150">Correct picks</td></tr>
           <?php
           $ScoreData = $this->model->PrintHighScoreTable();
                   
           $rowcount = 0;
           
            while ($matchdata = $ScoreData->fetch()) {

            $username = $matchdata['username'];
            $score = $matchdata['score'];
            $correctPicks = $matchdata['correctPicks'];
            $correctFirstPicks = $matchdata['correctFirstPicks'];
            

            $rowcount += 1;
            if ($rowcount % 2 == 1)
                echo"<tr class=\"alt\">\n";
            else
                echo"<tr>\n";
            echo"<td>$username</td>\n";
            echo"<td>$score</td>\n";
            echo"<td>$correctFirstPicks</td>\n";
            echo"<td>$correctPicks</td>\n";            
            echo"</tr>\n";
        }

           ?>

</table>
</div> <!-- Class container -->
